import request from '@/utils/request'

// 查询健康证发放列表
export function listDistribution(query) {
  return request({
    url: '/health/distribution/list',
    method: 'get',
    params: query
  })
}

// 查询健康证发放详细
export function getDistribution(distId) {
  return request({
    url: '/health/distribution/' + distId,
    method: 'get'
  })
}

// 新增健康证发放
export function addDistribution(data) {
  return request({
    url: '/health/distribution',
    method: 'post',
    data: data
  })
}

// 修改健康证发放
export function updateDistribution(data) {
  return request({
    url: '/health/distribution',
    method: 'put',
    data: data
  })
}

// 删除健康证发放
export function delDistribution(distId) {
  return request({
    url: '/health/distribution/' + distId,
    method: 'delete'
  })
}
